import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';

// 创建班组
export const spinCustomerCreate = (data) => postRequest('/spin/customer/create', data);

// 更新班组
export const spinCustomerUpdate = (data) => putRequest('/spin/customer/update', data);

// 删除班组
export const spinCustomerDelete = (params) => deleteRequest('/spin/customer/delete', params);

// 获得班组
export const spinCustomerGet = (params) => getRequest('/spin/customer/get', params);

// 获得班组分页
export const spinCustomerPage = (params) => getRequest('/spin/customer/page', params);

// 导出班组 Excel
export const spinCustomerExportExcel = (params) => getRequest('/spin/customer/export-excel', params);

// 提交
export const spinCustomerSubmitAudit = (params) => postRequest('/spin/customer/submit-audit', params);
// 撤销提交
export const spinCustomerClearSubmitAudit = (params) => postRequest('/spin/customer/clear-submit-audit', params);
// 审核
export const spinCustomerAudit = (params) => postRequest('/spin/customer/audit', params);
// 撤销审核
export const spinCustomerClearAudit = (params) => postRequest('/spin/customer/clear-audit', params);
// 保存并审核
export const spinCustomerCreateAudit = (params) => postRequest('/spin/customer/create-audit', params);
// 更新并审核
export const spinCustomerUpdateAudit = (params) => putRequest('/spin/customer/update-audit', params);
// 关闭
export const spinCustomerClose = (params) => postRequest('/spin/customer/close', params);
// 撤销关闭
export const spinCustomerClearClose = (params) => postRequest('/spin/customer/clear-close', params);

// 批量创建和验证客户
export const spinCustomerBatchCreate = (params) => postRequest('/spin/customer/batch-create', params);
export const spinCustomerBatchValid = (params) => postRequest('/spin/customer/batch-valid', params);
